<h2>Upload a new photo of Alias <%=Ualia.find(params[:ualia_id]).name%></h2>

<%= error_messages_for :photo %>

<% form_for(:photo, 
            :url => {:controller=>'ualia_photos',:action=>'create',:ualia_id=> params[:ualia_id]}, 
            :html => { :multipart => true }) do |f| %>
  <p>Select a photo to upload</p>
  <p>Title:<br /><%= f.text_field 'title' %></p>
  <p>Description:<br /><%= f.text_area 'body', :rows => 6, :cols => 40 %></p>
  <p>Photo:<br /><%= f.file_field 'uploaded_data' %></p>
  <p>
    <%= submit_tag 'Upload Photo' %> or 
    <%= link_to 'cancel', {:controller=>'ualia_photos',:action=>'index',:ualia_id=> params[:ualia_id]} %>
  </p>
<% end %>
